package agh.tk.markuptranslation;

public class HTMLSection extends AbstractLeaf
{

	public HTMLSection(String value) 
	{
		super(value);
	}

	@Override
	public String toDokuWiki() 
	{
		StringBuilder stringBuilder =  new StringBuilder() ;
		stringBuilder.append("<html>") ;
		stringBuilder.append(value) ;
		stringBuilder.append("</html>") ;
		return stringBuilder.toString() ;
	}

	@Override
	public String toMediaWiki() {
		return value; 
	}
	
	@Override
	public String toHTML() {
		return value; 
	}

	@Override
	public String toTxt2tags() 
	{
		StringBuilder stringBuilder = new StringBuilder() ;
		stringBuilder.append("'''") ;
		stringBuilder.append(value) ;
		stringBuilder.append("'''") ;		
		return stringBuilder.toString() ;
	}

}
